package club.yuit.rmq;

import org.apache.rocketmq.client.apis.ClientServiceProvider;

/**
 * @author: yuit
 * @date: 2023/12/12 13:28
 */
public class ClientServiceProviderFactory {

    private static volatile ClientServiceProvider provider;

    public static ClientServiceProvider getProvider() {
        if(provider == null){
            synchronized (ClientServiceProviderFactory.class){
                if(provider == null){
                    provider = ClientServiceProvider.loadService();
                }
            }
        }
        return provider;
    }



}
